differentiation of vectors